import request from '@/utils/request'
import {
  praseStrEmpty
} from "@/utils/admin";


export function page(query) {
  return request({
    url: '/rele/page',
    method: 'post',
    data: query
  })
}


export function addRele(query) {
  return request({
    url: '/rele/addNewRele',
    method: 'post',
    data: query
  })
}


export function updRele(query) {
  return request({
    url: '/rele/updRele',
    method: 'post',
    data: query
  })
}


export function getHasFiles(query) {
  return request({
    url: '/rele/getHasUpload',
    method: 'post',
    data: query
  })
}


export function openRele(id) {
  return request({
    url: '/rele/openRele?id='+id,
    method: 'get'
  })
}

export function closeRele(id) {
  return request({
    url: '/rele/closeRele?id='+id,
    method: 'get'
  })
}